package test;

import java.util.Comparator;

public class NameComparator implements Comparator<PersonSortable>
{
	@Override
	public int compare(PersonSortable o1, PersonSortable o2) {
		if(o1.getName().compareTo(o2.getName())<0) return -1;
		if(o1.getName().compareTo(o2.getName())>0) return 1;
		return 0;
	}
}
